package com.team.recruitment_management_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.team.recruitment_management_system.pojo.dto.job.JobPageQuery;
import com.team.recruitment_management_system.pojo.entity.Job;
import com.team.recruitment_management_system.pojo.vo.job.JobInfoVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 86147
* @description 针对表【job(职业表)】的数据库操作Mapper
* @createDate 2024-03-21 20:28:40
* @Entity com.team.recruitment_management_system.pojo.entity.Job
*/
@Mapper
public interface JobMapper extends BaseMapper<Job> {

    JobInfoVo seekerGetJobById(int jobId);

    JobInfoVo getJobById(int jobId);

    IPage<JobInfoVo> seekerGetJobInfoPage(Page<Job> hrPage, JobPageQuery pageQuery);

    IPage<JobInfoVo> otherGetJobInfoPage(Page<Job> hrPage, JobPageQuery pageQuery);

    void updateViewNum(int jobId);

    List<JobInfoVo> getHotJob();

    IPage<JobInfoVo> hrGetJobInfoPage(Page<Job> hrPage, JobPageQuery pageQuery,Integer userId);

    JobInfoVo hrGetJobById(int jobId, Integer userId);

    IPage<JobInfoVo> getJobInfoPageByCompanyId(Page<Job> hrPage, int companyId);
}




